﻿using System;
using System.Data;

public partial class usuarios_Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        wsmedcloud.Service ws = new wsmedcloud.Service();
        DataSet ds = ws.WSConsultaDados((int)Session["Usuario"]);


        lblCPF.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
        lblNome.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();
        lblTipoSanquineo.Text = ds.Tables[0].Rows[0].ItemArray[2].ToString();
        lblSexo.Text = ds.Tables[0].Rows[0].ItemArray[3].ToString();
        DateTime datanasc = Convert.ToDateTime(ds.Tables[0].Rows[0].ItemArray[4]);
        lblDataNascimento.Text = datanasc.ToShortDateString();
        lblRestricoes.Text = ds.Tables[0].Rows[0].ItemArray[5].ToString();
        lblEndereco.Text = ds.Tables[0].Rows[0].ItemArray[6].ToString();
        lblEmail.Text = ds.Tables[0].Rows[0].ItemArray[7].ToString();
        
    }
}
